package com.yxc.elasticsearchdemo.entiey;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author: 杨旭晨
 * @time: 2022/8/16 17:30
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TestEntity {

//    @Field(type = FieldType.Keyword)
//    private String ABC;
//
//    @Field(type = FieldType.Keyword)
//    private String DEF;
//
//    @Field(type = FieldType.Keyword)
//    private String hij;

    @Id
    @Field(type = FieldType.Keyword)
    private String id;

    @Field(type = FieldType.Keyword)
    private String END_TIME;

    @Field(type = FieldType.Keyword)
    private String ALARM_REASON;

    @Field(type = FieldType.Keyword)
    private String CONFIRM_STATUS;

    @Field(type = FieldType.Keyword)
    private String readState;

    @Field(type = FieldType.Keyword)
    private String groupId;

}
